package com.flyco.modules.oms.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 订单活动表
 * @Author: flyco
 * @Date:   2024-08-16
 * @Version: V1.0
 */
@Data
@TableName("oms_order_promotion")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="oms_order_promotion对象", description="订单活动表")
public class OmsOrderPromotion {

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
	private Integer id;
	/**商户号*/
	@Excel(name = "商户号", width = 15)
    @ApiModelProperty(value = "商户号")
	private Integer partnerId;
	/**经销商id*/
	@Excel(name = "经销商id", width = 15)
    @ApiModelProperty(value = "经销商id")
	private String storeId;
	/**经销商名称*/
	@Excel(name = "经销商名称", width = 15)
    @ApiModelProperty(value = "经销商名称")
	private String storeName;
	/**经销商渠道*/
	@Excel(name = "经销商渠道", width = 15)
    @ApiModelProperty(value = "经销商渠道")
	private Integer channelId;
	/**物料编码*/
	@Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
	private String skuCode;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
	private String skuName;
	/**商品活动价格*/
	@Excel(name = "商品活动价格", width = 15)
    @ApiModelProperty(value = "商品活动价格")
	private java.math.BigDecimal skuPrice;
	/**商品系列描述*/
	@Excel(name = "商品系列描述", width = 15)
    @ApiModelProperty(value = "商品系列描述")
	private String skuDesc;
	/**活动限制商品数量*/
	@Excel(name = "活动限制商品数量", width = 15)
    @ApiModelProperty(value = "活动限制商品数量")
	private Integer limitQty;
	/**已经下单的商品数量*/
	@Excel(name = "已经下单的商品数量", width = 15)
    @ApiModelProperty(value = "已经下单的商品数量")
	private Integer usedQty;
	/**活动开始时间*/
	@Excel(name = "活动开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "活动开始时间")
	private Date startTime;
	/**活动截止时间*/
	@Excel(name = "活动截止时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "活动截止时间")
	private Date endTime;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15)
    @ApiModelProperty(value = "删除标识")
	private Integer delFlag;
	/**文件附件*/
	@Excel(name = "文件附件", width = 15)
    @ApiModelProperty(value = "文件附件")
	private String filesUrl;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**操作人*/
	@Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人")
	private String createBy;
	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
	private Date updateTime;
	/**修改人*/
	@Excel(name = "修改人", width = 15)
    @ApiModelProperty(value = "修改人")
	private String updateBy;
}
